package com.lovenote.common.dto;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;

/**
 * User profile dto
 * 
 * @author xingkong1221
 *
 */
public class ProfileDto implements Serializable {
	
	private static final long serialVersionUID = 4861969312071981797L;
	
	@NotNull(message = "邮箱不能为空")
	@Email(message = "邮箱格式不正确")
	private String email;
	
	@Size(max = 100, message = "签名太长，小于100个字")
	private String signature;
	
	@Size(max = 30, message = "真实姓名太长，小于30个字")
	private String realname;
	
	
	private int gender;
	
	private String mobile;
	
	@Max(value = 130, message = "您输入的年龄太大了")
	@Min(value = 0, message = "您输入的年龄太小了")
	private Integer age;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
}
